import request from '@/utils/request'


let BASE_ADDRESS = '/assess/career'
// ------- 职等设定--------
// 分页查询
export const getCareerListApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: 'get',
        params: data
    })
}

// 修改
export const getCareerEditApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: 'put',
        data: data
    })
}
// id查询
export const getCareerGetInfoApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/getInfo`,
        method: 'get',
        params: data
    })
}

// 删除  
export const getCareerRemoveApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/remove`,
        method: 'delete',
        data: data
    })
}


//添加
export const getCareerAddApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: 'post',
        data: data
    })
}